package com.atguigu.srb.sms;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
//当前项目引入了srb-base
//简介将mp的启动器传给当前项目，又引入了jdbc的依赖
// jdbc中引入了数据库连接池相关的依赖包，Springboot项目数据库连接池自动配置类会创建数据库连接池对象注入到容器中
//但是项目中没有配置数据库连接参数导致启动失败
//解决：方案1-排除依赖 方案2-排除自动配置类
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@ComponentScan(basePackages = "com.atguigu.srb")
//@EnableFeignClients//(basePackages = "com.atguigu.srb.sms.feign")
public class SmsApplication {
    public static void main(String[] args) {
        SpringApplication.run(SmsApplication.class,args);
    }
}
